package com.lqq.designPattern.behavioral_pattern.responsibility;

//总经理类（具体的处理者）
public class GeneralManager extends Handler {
    public GeneralManager() {
        //部门经理处理7天以上的请假
        super(Handler.NUM_SEVEN);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println("总经理审批中...");
        System.out.println("请假内容：" + leave.getName() + "请假" + leave.getNum() + "天," + leave.getContent());
        System.out.println("总经理同意请假！");
    }
}